ARG OS_BASE=registry.openanolis.cn/openanolis/anolisos:23

FROM ${OS_BASE} as plugin_builder
RUN dnf install intel-accel-plugin-dlb -y

FROM registry.openanolis.cn/openanolis/anolisos:23-busybox
COPY --from=plugin_builder /usr/bin/dlb_plugin /usr/bin

LABEL \
    maintainer="OpenAnolis Intel Arch SIG" \
    org.opencontainers.image.title="Intel accelerator plugin of Intel DLB for Kubernetes" \
    org.opencontainers.image.version="0.27-23"

ENTRYPOINT ["/usr/bin/dlb_plugin"]
